package HomeWork.Chapter04;

/**
 * Enjoy programming!!!
 * Time: 2021/11/22 -  0:02
 */
class PC {
    private CPU cpu;
    private HardDisk HD;

    public void setCPU(CPU c) {
        this.cpu = c;
    }

    public void setHardDisk(HardDisk h) {
        HD = h;

    }

    public void show() {
        System.out.println(cpu.getSpeed() + "\t" + HD.getAmount() + "\t" + cpu.getTemp());
    }
}
